package com.ibeetl.admin.console.service.business;

import com.ibeetl.admin.console.dao.business.CoinGetDao;
import com.ibeetl.admin.console.dao.business.CoinUsedDao;
import com.ibeetl.admin.core.entity.business.CoinGet;
import com.ibeetl.admin.core.entity.business.CoinUsed;
import com.ibeetl.admin.core.entity.business.ScoreRule;
import com.ibeetl.admin.core.service.BaseService;
import org.beetl.sql.core.engine.PageQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class CoinUsedService extends BaseService<ScoreRule> {

	@Autowired
	CoinUsedDao coinUsedDao;

	/**
	 * 根据条件查询
	 *
	 * @param query
	 */
	public void queryByCondtion(PageQuery<CoinUsed> query) {
		PageQuery<CoinUsed> ret = coinUsedDao.queryByCondtion(query);
		queryListAfter(ret.getList());
	}


}
